package org.smvcd1.controller1;

import org.springframework.lang.Nullable;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class Test1Controller extends AbstractController{
    @Nullable
    @Override
    protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response)
            throws Exception {

        ModelAndView modelAndView=new ModelAndView();
        modelAndView.setViewName("/test1");//处理的路径

        return modelAndView;
    }
}
